# demo04_summary.py
list03 = [1, 2, 3]
list04 = list03[:]  # [1, 2, 3]
list04.append(100)
print(id(list03), id(list04))  # id: 查看变量在内存中存放的地址
print(list04)  # [1, 2, 3, 100]
print(list03)  # [1, 2, 3]
print("======================")
list01 = [100, 20, 30]
list02 = list01  # 直接赋值
print(id(list01), id(list02))
print(list02)  # [100, 20, 30]
list02.append(40)
print(list02)  # [100, 20, 30, 40]
print(list01)  # [100, 20, 30, 40]
